
from hyrobot.common import *
from lib.webapi import apimgr

suit_data_customerids = []
# 初始化方法
def suite_setup():
    global suit_data_customerids
    INFO('添加10个客户')
    for i in range(10):
        r = apimgr.customer_add(
            f'北京中医院_{i + 1}',
            f'1234657891_{i + 1:02d}',
            f'北京东城区_{i + 1}路')
        suit_data_customerids.append(r.json()['id'])

def suite_teardown():
    global suit_data_customerids
    for cid in suit_data_customerids:
        apimgr.customer_del(cid)